package cn.javass.dp.strategy.mydemo1;

import java.math.BigDecimal;

public class PackCosts implements CalcStrategy {

    private double  weight;

    private double  volume;

    public PackCosts(double  weight, double  volume) {
        this.weight = weight;
        this.volume = volume;
    }

    @Override
    public BigDecimal calcCosts() {
        return  new BigDecimal(weight + volume);
    }
}
